//package com.icangya.admin;
//
//
//import com.alibaba.fastjson.JSONObject;
//import com.icangya.Utils.JSONUtils;
//import com.icangya.service.IOrderTablesService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.CrossOrigin;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.io.Serializable;
//
//@CrossOrigin
//@RestController
//@RequestMapping(value = "/ordertables")
//public class OrderController {
//
//    @Autowired
//    public IOrderTablesService iOrderTablesService;
//
//
//    @RequestMapping(value = "/detail",method = RequestMethod.GET)
//    public JSONObject getByid(long id){
//        if(id<0){
//            return JSONUtils.getRoot(-1,"faild","");
//        }
//        long result=iOrderTablesService.getByNumUid(id);
//        return JSONUtils.getRoot(-1,"success",result);
//    }
//}
